package com.csdj.t309springboot.entity;

import org.springframework.beans.factory.annotation.Value;
import java.util.List;
import java.util.Map;
import java.util.Set;
//    https://blog.csdn.net/m0_38063172/article/details/108696361
public class Demo {

    @Value("#{${my.map}}")
    private Map<String, String> map;
    @Value("#{'${my.set}'}")
    private Set<String> set;
    @Value("#{'${my.list}'}")
    private List<String> list;

    @Override
    public String toString() {
        return "Demo{" +
                "map=" + map +
                ", set=" + set +
                ", list=" + list +
                '}';
    }
}
